package com.huajx.armp.htxny.handler;

import com.huajx.core.handler.HandlerAdapter;
import com.huajx.core.message.RequestMessage;
import com.huajx.core.message.ResponseMessage;
import com.huajx.util.HexUtil;
import com.huajx.util.check.BCC;
import org.apache.mina.core.session.IoSession;

import java.util.Arrays;

/**
 * @program: di-parent
 * @description: 平台登录 0x05
 * @author: lisa 叶新华
 * @create: 2020-03-26 09:36
 */
public class ServerLoginHandler extends AbstractHtxnyHandler {
    @Override
    public ResponseMessage handler(RequestMessage request) {
        byte[] bytes = (byte[]) request.getMessage();
        printMessage(bytes);

        // 响应数据
        render(request.getSession(), bytes);

        return null;
    }
}
